package com.example.dto;

import com.example.entity.Menu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import java.io.Serializable;
import java.util.List;

/**
 * @Author 王鹤蒲
 * @Date 2023 08 02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "UserDTO对象", description = "")
public class UserDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("用户账号")
    private String userName;

    @ApiModelProperty("用户密码")
    private String password;

    @ApiModelProperty("用户昵称")
    private String nickName;

    @Email
    @ApiModelProperty("用户邮箱")
    private String email;

    @ApiModelProperty("用户性别（0男 1女 2未知）")
    private String sex;

    @ApiModelProperty("手机号码")

    private String phonenumber;

    @ApiModelProperty("联系地址")
    private String address;

    @ApiModelProperty("角色唯一标识")
    private String role;

    @ApiModelProperty("用户菜单列表")
    private List<Menu> menuList;

    @ApiModelProperty("帐号状态（0停用 1正常）")
    private Integer status;

    @ApiModelProperty("头像地址")
    private String avatar;

    @ApiModelProperty("备注")
    private String remark;

    private String uuid;

    private String code;

    @ApiModelProperty("token")
    private String token;
}
